package com.chen.integral.module.users.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Title: manager-spring-mvc-hb
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-11-15 15:05
 * @Version: 1.0.0
 */
@Data
public class UsersAddVo {
    @NotBlank(message = "请输入名称")
//    @Length(message = "用户名不能超过 {max} 字符", max = 28)
    private String name;

    @NotNull(message = "请输入年龄")
//    @Range(message = "年龄范围为 {min} 到 {max} 之间", min = 1, max = 140)
    private Integer age;
}
